using System;

namespace Catastrophe.Initialize.IOCProvier
{
	public interface ICacheProvider : IDisposable
	{
		T GetCache<T>(string key);

		void SetCache<T>(string key, T value, TimeSpan? expireTime = null);

		bool Remove(string key);

		bool Exists(string key);
	}
}
